<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>

<script type="text/javascript">
	function bd() {
		var baidu = document.getElementById("i");
		baidu.src = "http://www.baidu.com";
	}
	function xl() {
		var sina = document.getElementById("i");
		sina.src = "http://www.sina.com.cn";
	}
</script>
<style type="text/css">
#i {
	width: 400px;
	height: 300px;
}
</style>
</head>

<body>
	<iframe id="i" scrolling="no"> </iframe>
	<div>
		<input type="button" value="百度" onclick="bd()" /> 
		<input type="button"
			value="新浪" onclick="xl()" />
	</div>
</body>
</html>
